//
//  SADataBaseClient.h
//  SHISEIDO_Consultation
//
//  Created by brave on 11/04/12.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//
//
//  ＊プロジェクト内のDBClientクラスは、必ず当クラスを継承すること＊
//  

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "FMDatabase.h"

typedef enum {
	DBStatusClosed,
	DBStatusOpen
}DBStatus;

@protocol SAInitializationDelegate;

@interface SADataBaseClient : NSObject {
//    id <NRInitializationDelegate> delegate;
@protected
    NSString *innerDBfileName;
    FMDatabase *innerDB;
    DBStatus status;
}

@property(nonatomic,readonly,getter = getDBfileName)NSString *dbfileName;
@property(nonatomic,assign)id delegate;
//@property(nonatomic,assign)id (NRInitializationDelegate)delegate;

- (id)initWithDBFileName:(NSString *)name;
- (void)open;
- (void)close;

@end


@protocol SAInitializationDelegate 

- (void)endInitialization;

@end

